package pt.ua.miect.sd.simuladorpesca.entities;

import pt.ua.miect.sd.simuladorpesca.SimulationConfig;

public class Boat extends MapEntity {

    public enum BoatStatus {AtPort,SearchingForFish,TrackingSchool,
                        JoiningCompanion,EnclosingTheSchool,StoringCatch,ReturningToPort,WaitingForCompanion};

    private String companyId;
    private BoatStatus status;
    private long Fishcount;

    public Boat(String boatId, String companyID) {
        super(boatId);
        this.companyId = companyID;
        super.setMapPosition(new MapPosition(SimulationConfig.PORT_HOME_X, SimulationConfig.PORT_HOME_Y));
        status = BoatStatus.AtPort;
    }

    /**
     * @return the Company Id
     */
    public String getCompanyId() {
        return companyId;
    }

    /**
     * @return the status
     */
    public BoatStatus getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(BoatStatus status) {
        this.status = status;
    }

     /**
     * @return the Fishcount
     */
    public long getFishcount() {
        return Fishcount;
    }

    /**
     * @param Fishcount the Fishcount to set
     */
    public void setFishcount(long Fishcount) {
        this.Fishcount = Fishcount;
    }
}
